// ShareJS options

module.exports = {

	// Database options
	db: {
   
		// Il prefisso per le entry del db di redis.
		prefix: 'ShareJS:',

		// type: Tipo di db utilizzato.(Tre valori supportati: redis, amazon e amazon_redis)
		// hostname: hostname di redis
		// port: porta per redis.
		// Se questi valori sono settati a null redis prova a connettersi a localhost porta 6379.
		type: 'amazon',
		hostname: null,
		port: null,

    	// Tutte le opzioni necessarie per utilizzare i servizi offerti da Amazon:
    	amazon_region: 'us-west-2',
    	amazon_s3_region: 'us-west-2',
    	amazon_dynamo_region: 'us-west-2',
    	amazon_access_key: 'AKIAJQCV7TVP67LD5VPA',
    	amazon_secret_key: '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',
    	amazon_s3_snapshots_bucket_name: 'mio-esempio-personale-di-pad-per-il-bucket-di-amazon',
    	amazon_dynamo_snapshots_table_name: 'snapshots',
    	amazon_dynamo_operations_table_name: 'ops',
    	amazon_dynamo_Read_Capacity_Units: 10,
    	amazon_dynamo_Write_Capacity_Units: 5,
	},

	//Percorso dove il server recupare la cartella webclient
	staticpath: '/share',

	// REST frontend options. Set rest: null to disable REST frontend.
	/*rest: {
	},*/

	// SocketIO frontend options. Set socketio: null to disable socketIO frontend.
	/*socketio: {
	  // Specify tuples for io.configure:
	  // 'transports': ['xhr-polling', 'flashsocket']
	},*/

  	// Browserchannel server options. Set browserChannel:null to disable browserchannel.
  	browserChannel: {},

	// Authentication code to test if clients are allowed to perform different actions.
	// See documentation for details.
	//auth: function(client, action) {
	//	action.allow();
	//}
}
